<?php


function smarty_function_lowerBoundry($params, &$smarty) {

	if(isset($params['id']))
		$id=$params['id'];
	else
		$id="lowerBoundry";

	if(isset($params['value']))
		$value=$params['value'];
	else
		$value=null;

	$selected ='selected="selected"';
	$html = '
	<select name="' . $id . '" id="' . $id . '">
		<option value="10" ' . ($value==10?$selected:'') . '>10</option>
		<option value="100" ' . ($value==100?$selected:'') . '>100</option>
		<option value="500" ' . ($value==500?$selected:'') . '>500</option>
		<option value="1000" ' . ($value==1000?$selected:'') . '>1000</option>
		<option value="2000" ' . ($value==2000?$selected:'') . '>2000</option>
		<option value="5000" ' . ($value==5000?$selected:'') . '>5000</option>
		<option value="10000" ' . ($value==10000?$selected:'') . '>10000</option>
	</select>';

	return $html;
}
?>